<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $this yii\web\View */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = Yii::t('debug', 'Backend Modules');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="backend-module-index">

    <h1><?= Html::encode($this->title) ?></h1>
    <?php $form = ActiveForm::begin(); ?>
    <div class="form-group">
        <?= Html::a('Return List', ['default/index'], ['class' => 'btn btn-secondary']) ?>
        <?= Html::submitButton('Submit', ['name' => 'preview', 'class' => 'btn btn-primary']) ?>
    </div>
    <div class="form-group">
        <label class="control-label" for="gii-table_name">Table Name</label>
        <?= Html::dropDownList('table', '', $list,  ['prompt' => '----', 'class' => 'form-control']) ?>
        <div class="help-block"></div>
    </div>
    <div class="form-group">
        <label class="control-label" for="gii-table_name">Action</label>
        <?= Html::dropDownList('do', '', ['up'=>'UP', 'down'=>'Down'],  ['prompt' => '----', 'class' => 'form-control']) ?>
        <div class="help-block"></div>
    </div>
    <?php ActiveForm::end(); ?>

</div>